package com.xyz.service;

import com.free.common.vo.ResultModel;
import com.xyz.dao.logic.CRecommendhistoryLogic;
import com.xyz.domain.table.CRecommendhistory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RecommendHistorySerivice extends BaseService {

    @Autowired
    private CRecommendhistoryLogic recommendhistoryLogic;

    public ResultModel addRecommendHistory(CRecommendhistory history){
        history = recommendhistoryLogic.add(history);
        if(history.getId() > 0){
            return ResultModel.success(history);
        }
        return ResultModel.failure();
    }




}
